package com.zoo.diannaopeijian.mapper;

import com.zoo.diannaopeijian.domain.ExportChannel;
import com.zoo.diannaopeijian.domain.ExportChannelExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface ExportChannelMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table export_channel
     *
     * @mbggenerated
     */
    @SelectProvider(type=ExportChannelSqlProvider.class, method="countByExample")
    int countByExample(ExportChannelExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table export_channel
     *
     * @mbggenerated
     */
    @DeleteProvider(type=ExportChannelSqlProvider.class, method="deleteByExample")
    int deleteByExample(ExportChannelExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table export_channel
     *
     * @mbggenerated
     */
    @Delete({
        "delete from export_channel",
        "where ExportChannelId = #{exportchannelid,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer exportchannelid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table export_channel
     *
     * @mbggenerated
     */
    @Insert({
        "insert into export_channel (ExportChannelId, ExportChannelName, ",
        "ExportChannelNote)",
        "values (#{exportchannelid,jdbcType=INTEGER}, #{exportchannelname,jdbcType=VARCHAR}, ",
        "#{exportchannelnote,jdbcType=VARCHAR})"
    })
    int insert(ExportChannel record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table export_channel
     *
     * @mbggenerated
     */
    @InsertProvider(type=ExportChannelSqlProvider.class, method="insertSelective")
    int insertSelective(ExportChannel record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table export_channel
     *
     * @mbggenerated
     */
    @SelectProvider(type=ExportChannelSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="ExportChannelId", property="exportchannelid", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="ExportChannelName", property="exportchannelname", jdbcType=JdbcType.VARCHAR),
        @Result(column="ExportChannelNote", property="exportchannelnote", jdbcType=JdbcType.VARCHAR)
    })
    List<ExportChannel> selectByExample(ExportChannelExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table export_channel
     *
     * @mbggenerated
     */
    @Select({
        "select",
        "ExportChannelId, ExportChannelName, ExportChannelNote",
        "from export_channel",
        "where ExportChannelId = #{exportchannelid,jdbcType=INTEGER}"
    })
    @Results({
        @Result(column="ExportChannelId", property="exportchannelid", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="ExportChannelName", property="exportchannelname", jdbcType=JdbcType.VARCHAR),
        @Result(column="ExportChannelNote", property="exportchannelnote", jdbcType=JdbcType.VARCHAR)
    })
    ExportChannel selectByPrimaryKey(Integer exportchannelid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table export_channel
     *
     * @mbggenerated
     */
    @UpdateProvider(type=ExportChannelSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") ExportChannel record, @Param("example") ExportChannelExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table export_channel
     *
     * @mbggenerated
     */
    @UpdateProvider(type=ExportChannelSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") ExportChannel record, @Param("example") ExportChannelExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table export_channel
     *
     * @mbggenerated
     */
    @UpdateProvider(type=ExportChannelSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(ExportChannel record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table export_channel
     *
     * @mbggenerated
     */
    @Update({
        "update export_channel",
        "set ExportChannelName = #{exportchannelname,jdbcType=VARCHAR},",
          "ExportChannelNote = #{exportchannelnote,jdbcType=VARCHAR}",
        "where ExportChannelId = #{exportchannelid,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(ExportChannel record);
}